home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / feverfrenzy-demo.swf / scripts / DefineSprite_219 / frame_1 / DoAction.as
Text File  |  2007-09-28  |  990b  |  51 lines

  1. function recebeLencois(c)
  2. {
  3. }
  4. function pausa()
  5. {
  6.    mbPaused = true;
  7. }
  8. function continua(elapsed)
  9. {
  10.    mbPaused = false;
  11. }
  12. mMouseMask_mc._visible = false;
  13. var lastMouseIn = false;
  14. this.onMouseMove = function()
  15. {
  16.    if(mbPaused)
  17.    {
  18.       return undefined;
  19.    }
  20.    var _loc3_ = {x:this._xmouse,y:this._ymouse};
  21.    this.localToGlobal(_loc3_);
  22.    if(mMouseMask_mc.hitTest(_loc3_.x,_loc3_.y,false))
  23.    {
  24.       if(!lastMouseIn)
  25.       {
  26.          lastMouseIn = true;
  27.          _root.cursor_mc.setOver2(this);
  28.       }
  29.    }
  30.    else if(lastMouseIn)
  31.    {
  32.       lastMouseIn = false;
  33.       _root.cursor_mc.setNotOver2(this);
  34.    }
  35. };
  36. this.onMouseDown = function()
  37. {
  38.    if(mbPaused)
  39.    {
  40.       return undefined;
  41.    }
  42.    var _loc4_ = {x:this._xmouse,y:this._ymouse};
  43.    this.localToGlobal(_loc4_);
  44.    if(mMouseMask_mc.hitTest(_loc4_.x,_loc4_.y,false))
  45.    {
  46.       _root.Sons.gotoAndStop("click");
  47.       _parent.moveToHamper();
  48.    }
  49. };
  50. var mbPaused = false;
  51.